import service from '../server'

// 机器列表
export const getMachineListApi = (data) => {
    return service.get('/api/v1/provider/machinelist',data)
}

// 实例创建
export const createInstanceApi = (data) => {
    return service.post('/api/v1/provider/create',data)
}

// 机器详情
export const getMachineDetailApi = (data) => {
    return service.get('/api/v1/provider/machine-detail',data)
}

// 上架
export const getMachineUpApi = (data) => {
    return service.post('/api/v1/provider/machine-up',data)
}

// 下架
export const getMachineDownApi = (data) => {
    return service.post('/api/v1/provider/machine-down',data)
}

// 生成机器注册token
export const createMachineTokenApi = (data) => {
    return service.get('/api/v1/provider/register/token/create',data)
}

// 编辑机器
export const updateMachineApi = (data) => {
    return service.post('/api/v1/provider/machine-update',data)
}

// 删除机器
export const deleteMachineApi = (data) => {
    return service.delete('/api/v1/provider/machine/del',data)
}

// 机器操作记录列表
export const getProviderActionlistApi = (data) => {
    return service.get('/api/v1/provider/actionlist',data)
}
